home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / QuickTime / QT Tools / QuickTime Interfacing.sit / QuickTime Interfacing / SeeMovieRun folder / sources / CEBCollaborator.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-25  |  1.5 KB  |  44 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CEBCollaborator.c
  3.  
  4.         Class that represents objects that need access to the global
  5.         event record. An EBCollaborator maintains a list of provider
  6.         objects and a list of dependent objects. When an EBCollaborator
  7.         changes, it sends itself the BroadcastChange message. Each
  8.         dependent then receives the ProviderChanged message which packages
  9.         an EventRecord along with it.
  10.         
  11.         If any object handles the event, change the event.what to a nullEvent
  12.         so it is effectively ignored by the application.
  13.         
  14.     SUPERCLASS = CCollaborator 
  15.     
  16.     Copyright © 1992 Joe Zobkiw. All rights reserved.
  17.     Portions Copyright © 1990 Symantec Corporation.  All rights reserved.    
  18.  
  19.  ******************************************************************************/
  20.  
  21. #include "CCollaborator.h"
  22. #include "CEBCollaborator.h"
  23.  
  24. /******************************************************************************
  25.  IEBCollaborator
  26.  
  27.      Initialize an EBCollaborator
  28. ******************************************************************************/
  29.  
  30. void CEBCollaborator::IEBCollaborator( void)
  31. {
  32.     CCollaborator::ICollaborator();
  33. }
  34.  
  35. /******************************************************************************
  36.  BroadcastEvent {Unique to this class}
  37.  
  38.      Broadcast an event
  39. ******************************************************************************/
  40. void     CEBCollaborator::BroadcastEvent(EventRecord *macEvent)
  41. {
  42.     BroadcastChange(kEventRecordReason, (Ptr)macEvent);
  43. }
  44.